#include<bits/stdc++.h>
#define int long long
using namespace std;
const int N = 1e5 + 5;
int n,a[N],minn = 0x3f3f3f3f,maxn;

signed main() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin >> n;
    for(int i = 1; i <= n; i++) {
        int num;
        cin >> num;
        a[num]++;
        minn = min(minn,num);
    }
    int sum = 0;
    for(int i = 1; i < N; i++) {
        if(a[i]) {
            if(i != minn) {
                if(a[i] > sum) {
                    sum = a[i];
                }
            }
            else {
                sum += a[i];
            }
        }
    }
    cout << sum << "\n";
    return 0;
}
